package com.cg.feign;

import com.cg.entity.Demo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author cheyinbo
 * @date 2021-04-06 18:25:58
 */
@FeignClient("spring-feign-server")
public interface DemoService {

    @GetMapping("/service/demoTest")
    List<Demo> getDemos();
}
